package com.qdu.bussiness.domain;

import java.math.BigDecimal;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.qdu.common.annotation.Excel;
import com.qdu.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 门票信息对象 bus_ticket
 * 
 * @author qdu
 * @date 2022-03-06
 */
public class BusTicket extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long ticketId;

    /** 门票名称 */
    @Excel(name = "门票名称")
    private String ticketName;

    /** 门票编号 */
    @Excel(name = "门票编号")
    private String ticketCode;

    /** 门票描述 */
    @Excel(name = "门票描述")
    private String ticketDescription;

    /** 门票价格 */
    @Excel(name = "门票价格")
    private BigDecimal ticketPrice;

    /** 门票时长 */
    @Excel(name = "门票时长")
    private Long ticketDuration;

    /** 门票类型 */
    @Excel(name = "门票类型")
    private String ticketType;

    public void setTicketId(Long ticketId) 
    {
        this.ticketId = ticketId;
    }

    public Long getTicketId() 
    {
        return ticketId;
    }
    public void setTicketName(String ticketName) 
    {
        this.ticketName = ticketName;
    }

    public String getTicketName() 
    {
        return ticketName;
    }
    public void setTicketCode(String ticketCode) 
    {
        this.ticketCode = ticketCode;
    }

    public String getTicketCode() 
    {
        return ticketCode;
    }
    public void setTicketDescription(String ticketDescription)
    {
        this.ticketDescription = ticketDescription;
    }

    public String getTicketDescription()
    {
        return ticketDescription;
    }
    public void setTicketPrice(BigDecimal ticketPrice) 
    {
        this.ticketPrice = ticketPrice;
    }

    public BigDecimal getTicketPrice() 
    {
        return ticketPrice;
    }
    public void setTicketDuration(Long ticketDuration)
    {
        this.ticketDuration = ticketDuration;
    }

    public Long getTicketDuration()
    {
        return ticketDuration;
    }
    public void setTicketType(String ticketType) 
    {
        this.ticketType = ticketType;
    }

    public String getTicketType() 
    {
        return ticketType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("ticketId", getTicketId())
            .append("ticketName", getTicketName())
            .append("ticketCode", getTicketCode())
            .append("ticketDescription", getTicketDescription())
            .append("ticketPrice", getTicketPrice())
            .append("ticketDuration", getTicketDuration())
            .append("ticketType", getTicketType())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
